public class Student {
    /*
    1.可以从控制台输入一个学生的姓名，班级，年龄，并输入到student.txt文件中
    2.第一位输入，创建
    再次输入，继续加入
     */
    private String name;
    private String banJi;
    private String age;

    public Student(String name, String banJi, String age) {
        this.name = name;
        this.banJi = banJi;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBanJi() {
        return banJi;
    }

    public void setBanJi(String banJi) {
        this.banJi = banJi;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
